All Questions
Tagged with bash-arraygnu-parallel
3 questions
0votes
3answers
164views
Unable to append to array using parallel
I can't append to an array when I use parallel, no issues using a for loop. Parallel example: append() { arr+=("$1"); } export -f append parallel -j 0 append ::: {1..4} declare -p arr ...
3votes
2answers
612views
Iterating over array elements with gnu parallel
I have an input file, names.txt, with the 1 word per line: apple abble aplle With my bash script I am trying to achieve the following output: apple and apple apple and abble apple and aplle ...
1vote
2answers
3kviews
gnu parallel with bash array
I trying to run command recon-all with GNU parallel freesurfer preproc i have a bash array of list of patients to run 8 patents simultaneously: root@4d8896dfec6c:/tmp# echo ${ids[@]} G001 G002 G003 ...